//
//  PersonalInfoTableViewCell.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/7/9.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "PersonalInfoTableViewCell.h"

@implementation PersonalInfoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    WeakSelf
    self.leftLB = [UILabel labelWithText:@"" textColor:UIColorFromRGB(0x323232) fontSize:13];
    [_leftLB sizeToFit];
    [self addSubview:_leftLB];
    [_leftLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(rateWidth(25));
        make.centerY.equalTo(self);
    }];
    
    self.rightBgImg = [[UIImageView alloc] init];
    _rightBgImg.image = UIImageNamed(@"textfieldBgImg");
    [_rightBgImg sizeToFit];
    [self addSubview:_rightBgImg];
    [_rightBgImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(weakSelf.leftLB.mas_right).offset(rateWidth(20));
        make.centerY.equalTo(self);
    }];
    _rightBgImg.userInteractionEnabled = YES;
    
    self.textField = [[UITextField alloc] init];
    _textField.font = UIFontSystem(13);
    _textField.textColor = UIColorFromRGB(0x323232);
    [_rightBgImg addSubview:_textField];
    [_textField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(weakSelf.rightBgImg).offset(rateWidth(10));
        make.size.mas_offset(CGSizeMake(rateWidth(490), rateWidth(60)));
        make.centerY.equalTo(weakSelf.rightBgImg);
    }];
}

@end
